package com.wudizaba.microservicesdemosystem.controller;


import com.wudizaba.microservicesdemosystem.module.dto.JasperDTO;
import com.wudizaba.microservicesdemosystem.service.IJasperService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wudizaba
 * @date 2024/6/14
 */
@RestController
@RequestMapping("/excel/produce")
@Api(tags = "jasper接口")
public class JasperController {

    @Autowired
    private IJasperService jasperService;


    @ApiOperation(value = "jasper导出文件接口")
    @PutMapping("/test")
    public String jasperExportFile(@RequestParam JasperDTO jasperDTO) {
        jasperService.jasperExportFile(jasperDTO);
        return "test";
    }
}
